using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MecRobGest.GUI
{
    public partial class GUINewProveedores : Form
    {
        public GUINewProveedores()
        {
            InitializeComponent();
        }

        private void proveedoresBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.proveedoresBindingSource.EndEdit();
            this.proveedoresTableAdapter.Update(this.dBDataset.Proveedores);

        }

        private void GUINewProveedores_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dBDataset.Materiales' table. You can move, or remove it, as needed.
            this.materialesTableAdapter.Fill(this.dBDataset.Materiales);
            // TODO: This line of code loads data into the 'dBDataset.Proveedores' table. You can move, or remove it, as needed.
            this.proveedoresTableAdapter.Fill(this.dBDataset.Proveedores);

        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.proveedoresBindingSource.EndEdit();
            this.proveedoresTableAdapter.Update(this.dBDataset.Proveedores);
            this.Dispose();
        }
    }
}